package com.iaiai.imail.helper;

import com.iaiai.imail.helper.mail.MultiMailsender;

/**
 * Created with IntelliJ IDEA.
 * User: Apple
 * Date: 12-5-25
 * Time: 17:16:32
 * To change this template use File | Settings | File Templates.
 */
public class Text {

    public static void main(String[] args){
        //这个类主要是设置邮件
        MultiMailsender.MultiMailSenderInfo mailInfo = new MultiMailsender.MultiMailSenderInfo();
        mailInfo.setMailServerHost("smtp.163.com");
        mailInfo.setMailServerPort("25");
        mailInfo.setValidate(true);
        mailInfo.setUserName("water-season");
        mailInfo.setPassword("52609760xlj");//您的邮箱密码
        mailInfo.setFromAddress("water-season@163.com");
        mailInfo.setToAddress("176291935@qq.com");
        mailInfo.setSubject("设置邮箱标题");
        mailInfo.setContent("设置邮箱内容");
        String[] receivers = new String[]{"water-season@163.com", "176291935@qq.com"};
        String[] ccs = receivers;
//        mailInfo.setReceivers(receivers);
//        mailInfo.setCcs(ccs);
        //这个类主要来发送邮件
        MultiMailsender sms = new MultiMailsender();
        sms.sendTextMail(mailInfo);//发送文体格式
//        MultiMailsender.sendHtmlMail(mailInfo);//发送html格式
//        MultiMailsender.sendMailtoMultiCC(mailInfo);//发送抄送
    }

}
